import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { BaseService } from 'src/modules/base.service';
import { Repository } from 'typeorm';
import { Log } from './log.entity';
@Injectable()
export class LogService extends BaseService {
  module: Repository<Log>;
  constructor(
    @InjectRepository(Log)
    private logsRepository: Repository<Log>,
  ) {
    super();
    this.module = this.logsRepository;
  }

  async clear() {
    return await this.logsRepository.clear();
  }
}
